package cn.tedu.egweibo02.controller;

import cn.tedu.egweibo02.mapper.UserMapper;
import cn.tedu.egweibo02.pojo.dto.UserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/user")
public class UserController {
    @Autowired
    private UserMapper userMapper;

    @PostMapping("/insert")
    public int regUser(@RequestBody UserDTO userDTO){
return 1;
    }
}
